CarSurfaceLayer

open class CarSurfaceLayer : MapboxCarMapObserver

Simplify the classes that need to extend the MapboxCarMapObserver

This class is meant to have children so you don't have to forward the calls and store surface state.

Constructors

CarSurfaceLayer
Link copied to clipboard
fun CarSurfaceLayer()

Functions

children
Link copied to clipboard
open fun children(): List<MapboxCarMapObserver>
This allows you to create children listeners.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onAttached
Link copied to clipboard
open override fun onAttached(mapboxCarMapSurface: MapboxCarMapSurface)
onDetached
Link copied to clipboard
open override fun onDetached(mapboxCarMapSurface: MapboxCarMapSurface)
onVisibleAreaChanged
Link copied to clipboard
open override fun onVisibleAreaChanged(visibleArea: Rect, edgeInsets: EdgeInsets)
surfaceDimensions
Link copied to clipboard
fun surfaceDimensions(): Pair<Int, Int>?
toString
Link copied to clipboard
open fun toString(): String

Properties

edgeInsets
Link copied to clipboard
var edgeInsets: EdgeInsets? = null
visibleArea
Link copied to clipboard
var visibleArea: Rect? = null

Inheritors

RoadLabelSurfaceLayer
Link copied to clipboard
CarCamera2d
Link copied to clipboard
CarScene2d
Link copied to clipboard
CarTextModel2d
Link copied to clipboard